package com.github.cyf.mapper;

import com.github.cyf.domain.po.Emp;
import com.github.cyf.domain.vo.EmpSameAgeVo;
import com.github.cyf.domain.vo.EmpVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author chenyifan
 * @since 2024-01-23
 */
@Mapper
public interface EmpMapper {

    /**
     * 获取相同年龄的员工
     * @return
     */
    List<EmpSameAgeVo> getSameAgeEmp();

    /**
     * 根据部门id查询员工信息
     * @param did
     * @return
     */
    List<Emp> getEmpListByDid(@Param("did") int did);

    /**
     * 级联方式获取 EmpVo
     * @return
     */
    List<EmpVo> getEmpVoByCascadeMode();

    List<EmpVo> getEmpVoByStep();
}
